package org.hertsig.magiccardmarket.oauth;


//class OAuthApi extends MagicCardMarketApi {
//	@Getter(AccessLevel.PROTECTED) private HttpClient client;
//	private OAuthClient oauthClient;
//	
//	public OAuthApi(String consumerKey, String consumerSecret, String callbackUrl) {
//		BasicCredentialsProvider credentialsProvider = new BasicCredentialsProvider();
//		credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM, OAuthSchemeFactory.SCHEME_NAME),
//				new OAuthCredentials(new OAuthAccessor(new OAuthConsumer(callbackUrl, consumerKey, consumerSecret, null))));
//		
//		this.client = HttpClientBuilder.create()
//			.setSSLSocketFactory(new SSLConnectionSocketFactory(createSslContext()))
//			.setDefaultAuthSchemeRegistry(RegistryBuilder.<AuthSchemeProvider>create()
//					.register(OAuthSchemeFactory.SCHEME_NAME, new AuthSchemeProvider() {
//						@SuppressWarnings("deprecation")
//						@Override
//						public AuthScheme create(HttpContext context) {
//							return new OAuthSchemeFactory().newInstance(new BasicHttpParams());
//						}
//					})
//					.build())
//			.setDefaultCredentialsProvider(credentialsProvider)
//			.build();
//	}
//	
//	@Override
//	protected String base() {
//		return "https://sandbox.mkmapi.eu/ws/v1.1/";
//	}
//}
